package model;

/**
 * Class, representing the player in the game with name, sign and current score
 * 
 * @author random.org
 * 
 */

public class Player {

        private String mName;
        private String mSign;
        static int mPreviousChoise = Integer.MIN_VALUE;
        private int mCurrentScore;

        public Player(String name, String sign) {
                setName(name);
                setSign(sign);
                mCurrentScore=0;
        }

        /**
         * Asking the player to choose a sign for the current game.
         */
        private void setSign(String sign) {
        	if(sign!=null && sign.length()>0)
               this.mSign = sign;
        }

        /**
         * Setting a name to the current player.
         * 
         * @param name
         *            - name of the player.
         */
        private void setName(String name) {
                if (name != null && !name.equals(""))
                        this.mName = name;
        }

        /**
         * Increments the current score of the player
         */
        public void increaseScore(int score) {
                mCurrentScore += score;
        }

        /**
         * 
         * @return the player name.
         */
        public String getName() {
                return this.mName;
        }

        /**
         * 
         * @return the player sign.
         */
        public String getSign() {
                return mSign;
        }

        /**
         * 
         * @return the player score.
         */
        public int getCurrentScore() {
                return mCurrentScore;
        }


}